package com.lh.lepay.service.impl;

import com.lh.lepay.entity.SysUser;
import com.lh.lepay.service.SysUserService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;

import org.springframework.stereotype.Component;

import java.util.Objects;

@Slf4j
@Component("customerUserDetailsService")
public class CustomerUserDetailsServiceImpl{
    @Resource
    private SysUserService sysUserService;


//    @Override
//    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
//        SysUser sysUser = sysUserService.loadUserByUsername(username);
//        if (Objects.isNull(sysUser)){
//            throw new UsernameNotFoundException("用户名或者密码错误");
//        }
//        log.info("用户", sysUser);
//        return sysUser;
//    }
}
